<!--[*
// ----------------------------------------------------------------------
// Source file:  $Source: /cvsroot/pn-commerce/pn-commerce/pntemplates/pncommerce_admin_orderupdate.html,v $
//
// Last changes from:  $Author: landseer $
//
// Revision:           $Revision: 1.9 $
//
// Date of revision    $Date: 2005/03/22 13:03:40 $
//
// ----------------------------------------------------------------------
// Purpose: 
*]-->

<!--[include file='pncommerce_admin_commonHeader.html']-->

<!--[ if $Order <> false ]-->

<p align='center'> <!--[ pnml name='_PNC_ORDERNUMBER' ]--> <b><!--[ $Order.OrderNumber ]--></b><br></p>
<form action='<!--[ pncAdminModURL func=orderupdate ]-->' method='post'>
<!--IMPORTANT!-->
<input type="hidden" name="authid" value="<!--[pnsecgenauthkey module="pncommerce"]-->">
<table align='center' width='100%' border='1' rules='row'>
    <tr>
        <td><!--[ pnml name='_PNC_ORDERSTATUS' ]-->
            <select class='pn-text' name='OrderStatus'>
            <!--[ $OrderStatusList ]-->
            </select>
        </td>
    </tr>
    <tr>
        <td>
            <!--[ pnml name='_PNC_COMMENT' ]-->&nbsp;
            <INPUT class='pn-text' TYPE='text' NAME='OrderRemark' SIZE='80' VALUE='<!--[ $Order.CartData.Remark ]-->'>
        </td>
    </tr>

<table align='center' width='100%' border='1' rules='row'>
    <tr>
        <th><!--[ pnml name='_PNC_ITEMSKU' ]--></th>
        <th><!--[ pnml name='_PNC_ITEMNAME' ]--></th>
        <th><!--[ pnml name='_PNC_ORDEREDQUANTITY' ]--></th>
        <th><!--[ pnml name='_PNC_DELIVEREDQUANTITY' ]--></th>
        <th><!--[ pnml name='_PNC_ITEMCLOSED' ]--></th>
    </tr>

    <!--[ foreach item=Item from=$Order.CartData.Items key=count ]--> 
    <tr>
        <td align='center' rowspan='2'>
            <!--[ $Item.ItemSKU ]-->:::<!--[ $count ]-->:::
        </td>
        <td align='center' rowspan='2'>
            <!--[ $Item.ItemName ]-->
        </td>
        <td align='center'>
            <!--[ $Item.ItemQuantity ]-->
        </td>
        
        <!--[ if $Item.ItemDone == true ]-->

        <td align='center'>
            <!--[ $Item.ItemDelQty ]-->
        </td>
        <td align='center'>
            <input type='hidden' name='DQ_<!--[ $count ]-->' value ='<!--[ $Item.ItemDelQty ]-->'>
            <input type='hidden' name='REM_<!--[ $count ]-->' value ='<!--[ $Item.ItemRemark ]-->'>
            <input type='checkbox' name='DONE_<!--[ $count ]-->' value='true' checked>
        </td>
    </tr>
    <tr>
        <td colspan='3'>
            <!--[ pnml name='_PNC_COMMENT' ]-->&nbsp;
            <!--[ $Item.ItemRemark ]-->
        </td>
    </tr>

        <!--[ else ]-->

        <td align='center'>
            <input class='pn-text' type='text' name='DQ_<!--[ $count ]-->' size='6' value='<!--[ $Item.ItemDelQty ]-->'>
        </td>
        <td align='center'>
            <input type='checkbox' name='DONE_<!--[ $count ]-->' value='true'>
        </td>
    </tr>
    <tr>
        <td colspan='3' align='center'>
            <!--[ pnml name='_PNC_REMARKS' ]-->&nbsp;
            <input class='pn-text' type='text' name='REM_<!--[ $count ]-->' size='80' value='<!--[ $Item.ItemRemark ]-->'>
        </td>
    </tr>
    
    <!--[ /if ]-->

    <!--[ /foreach ]-->

</table>
<br>
<br>
<table width='100%'>
    <tr>
        <td align='left' width='25%'>
            <input type='hidden' name='ON' value='<!--[ $Order.OrderNumber ]-->'>
            <input type='hidden' name='KID' value='<!--[ $Order.UserID ]-->'>
            <input class='pn-button' type='submit' name='Update' value='<!--[ pnml name='_PNC_UPDATEORDER' ]-->'>
			<br>
        </form>
		</td>
        <td align='center' width='25%'>
            <form action='<!--[ pncUserModURL func=receipt ]-->' method='post'>
<!--IMPORTANT!-->
<input type="hidden" name="authid" value="<!--[pnsecgenauthkey module="pncommerce"]-->">
            <input type='hidden' name='ON' value='<!--[ $Order.OrderNumber ]-->'>
            <input type='hidden' name='User' value='<!--[ $Order.UserID ]-->'>
            <input type='hidden' name='Admin' value=true>
            <input class='pn-button' type='submit' name='Receipt' value='<!--[ pnml name='_PNC_RETURNTORECEIPT' ]-->'>
            </form>
        </td>
        <td align='center' width='25%'>
            <form action='<!--[ pncAdminModURL func=receiptsearch ]-->' method='post'>
 <!--IMPORTANT!-->
<input type="hidden" name="authid" value="<!--[pnsecgenauthkey module="pncommerce"]-->">
           <input type='hidden' name='ON' value='<!--[ $Order.OrderNumber ]-->'>
            <input type='hidden' name='KID' value='<!--[ $Order.UserID ]-->'>
            <input class='pn-button' type='submit' name='Search' value='<!--[ pnml name='_PNC_RETURNTOSEARCHRECEIPTS' ]-->'>
            </form>
        </td>
        <td align='right' width='25%'>
            <form action='<!--[ pncAdminModURL func=receiptsearch mode=showlastresults ]-->' method='post'>
<!--IMPORTANT!-->
<input type="hidden" name="authid" value="<!--[pnsecgenauthkey module="pncommerce"]-->">
            <input class='pn-button' type='submit' name='Submit' value='<!--[ pnml name='_PNC_RETURNTOSEARCHRECEIPTRESULTS' ]-->'>
            </form>
        </td>
    </tr>
</table>
<br>

<!--[ else ]-->

<p align='center'><b><!--[ pnml name='_PNC_ORDER' ]--> <!--[ $Order.OrderNumber ]--> : <!--[ pnml name='_PNC_NODBDATA' ]--></p><br>

<!--[ /if ]-->

<!--[include file='pncommerce_admin_commonFooter.html']-->
